/**
 *  文件名:Activity_setting.java
 *  修改人:lihangjie
 *  创建时间:2015-8-27 下午10:46:54
 */
package com.sharemob.tinchat.modules.account;

import java.util.LinkedHashMap;
import java.util.Map;

import android.os.Bundle;
import android.text.Html;
import android.view.Window;
import android.widget.TextView;

import com.sharemob.tinchat.R;
import com.sharemob.tinchat.base.BaseActivity;
import com.sharemob.tinchat.base.NoScrollListview;

/**
 * 
 * <一句话功能简述>
 *
 * @author lihangjie
 * version [版本号,2015-8-27 下午10:46:54]
 * @see    [相关类/方法]
 * @since  [产品/模块版本]
 *
 */
public class ActivityAboutus extends BaseActivity {

	private NoScrollListview listView=null;
    private Map<String,String> items=null;
    protected void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.activity_aboutus);
        items=new LinkedHashMap<String,String>();
        
        
        items.put("updater", "检测更新软件,V1.23");
        items.put("userprotocol", "用户协议与声明");
        items.put("email", "企业邮箱,leehongee@sharemob.com");
        
        listView=getInitListView(items,R.id.ll_aboutus);

        this.setTitle("关于");
        this.exitView(R.id.title_back,R.anim.activity_close,0);
        
        TextView tv_agree_agreement=(TextView)findViewById(R.id.tv_copyright);
        String html ="<span color='#595959'>深圳市盛享时代网络科技有线公司<br/><br/>" +
        		"<font color='#b3b3b3'>CopyRight @ 2015 ShareMob.<br/></font>" +
        		"<font color='#b3b3b3'>All Rights Reserved.</font></span>";
        CharSequence charSequence = Html.fromHtml(html);        
        tv_agree_agreement.setText(charSequence);
    }
	@Override
	protected void keyEventOfListView(int position, int id) {
     	String tag=getItemFromMap(items,position);
        if("userprotocol".equals(tag)){
        	System.out.println("--------用户协议与声明");
        	gotoViewByAnim(ActivityAboutus.this, UserProtocolActivity.class, R.anim.in_from_bottom,false);
        }else if("email".equals(tag)){
        	System.out.println("-------企业邮箱");
        	
        }else if("updater".equals(tag)){
        	System.out.println("-------检测更新软件");
        }
	}
}
